package cn.toys.modular.service;

import cn.toys.modular.entity.Product;
import cn.toys.modular.entity.ProductType;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 * 产品类型表 服务类
 * </p>
 *
 * @author toys
 * @since 2021-02-26
 */
public interface IProductTypeService {

    ProductType selectById(Integer productTypeId);

    List<ProductType> selectByName(String name);

    Long getCountByName(String name);

    Integer insert(ProductType productType);

    Integer update(ProductType productType);

    Integer deleteById(Integer productTypeId);
}
